﻿using Microsoft.AspNetCore.Http;
using System.Net;

namespace Soul.IdentityServer.Hosting
{
    public abstract class EndpointBase
    {
        public abstract Task<EndpointResult> HandleAsync(HttpContext context);

        public JsonEndpointResult JsonResult(object data)
        {
            return new JsonEndpointResult(data);
        }
    }
}
